<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="Register"
    MasterPageFile="Utils.Master" Title="Sueetie - Registration Page" %>

<asp:Content ContentPlaceHolderID="cpBody" runat="server">
    <div align="center">
        <div class="CreateAccountArea">
            <h2 class="MessageTitle">
                Register
            </h2>
            <div class="MessageContent">
                <div class="FormArea">
                    <div class="FormFieldDescription">
                        It only takes a minute to join. Please fill in the information below to create
                        your account.
                    </div>
                    <div class="JoinArea">
                        <table cellpadding="0" cellspacing="4" border="0" width="650px">
                            <tr>
                                <td align="right">
                                    Username:</td>
                                <td>
                                    <asp:TextBox ID="txtUsername" runat="server" CssClass="LoginBoxBig" />
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage=" * "
                                        CssClass="BigErrorMessage" ControlToValidate="txtUsername" />
<asp:RegularExpressionValidator ID="RegularExpressionValidator1"
 ControlToValidate="txtUsername"
 Display="Dynamic"
 Text="<br>Username must contain at least 4 characters.  No spaces.<br>Letters and numbers only."
 ValidationExpression="\w{4,}"
 Runat="Server" />                                        

                                </td>
                            </tr> <tr>
                                <td align="right">
                                    Display Name:</td>
                                <td>
                                    <asp:TextBox ID="txtDisplayName" runat="Server" CssClass="LoginBoxBig" />
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage=" * " CssClass="BigErrorMessage"
                                        ControlToValidate="txtDisplayName" />
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    Password:</td>
                                <td>
                                    <asp:TextBox ID="txtPassword1" runat="server" CssClass="LoginBoxBig" TextMode="password" />
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage=" * "
                                        CssClass="BigErrorMessage" ControlToValidate="txtPassword1" />
                                       <asp:RegularExpressionValidator ID="RegularExpressionValidator2"
 ControlToValidate="txtPassword1"
 Display="Dynamic"
 Text="<br>Password must contain at least 6 characters.  Letters and numbers only.  No spaces."
 ValidationExpression="\w{6,}"
 Runat="Server" />    </td>
                            </tr>
   <tr>
                                <td align="right">
                                    Confirm Password:</td>
                                <td>
                                    <asp:TextBox ID="txtPassword2" runat="server" CssClass="LoginBoxBig" TextMode="password" />
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage=" * "
                                        CssClass="BigErrorMessage" ControlToValidate="txtPassword2" />
  <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage=" Doesn't match... "
                                        CssClass="BigErrorMessage"  ControlToValidate="txtPassword2" ControlToCompare="txtPassword1" />                                        
                                      </td>
                            </tr>                            
                           
                            <tr>
                                <td align="right">
                                    Email Address:</td>
                                <td>
                                    <asp:TextBox ID="txtEmailAddress" runat="server" CssClass="LoginBoxBig" />
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage=" * "
                                        CssClass="BigErrorMessage" ControlToValidate="txtEmailAddress" /></td>
                            </tr>
                       
                            <tr>
                                <td>
                                </td>
                                <td>
                                    <div class="TextButtonBigArea">
                                        <asp:Button ID="CreateUserButton" runat="server" OnClick="CreateUser_Click" Text="Create Account!"
                                            CssClass="TextButtonBig" CausesValidation="True" />
                                    </div>
                                </td>
                            </tr>
                                 <tr>
                                <td colspan="2">
                                <div class="LoginFailureMessageArea">
                                    <asp:Label ID="labelUserMessage" runat="server" />
                                   </div> 
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
